package com.hexiang.web;

import com.hexiang.service.OrderServiceImpl;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Validated
public class OrderController {
    @Resource
    private OrderServiceImpl orderService;

    @PostMapping("/saveOrder")
    public String saveOrder() {
        orderService.processSuccess();
        return "ok";
    }
}
